<div class="my-account form-container">
	<div class="col-left sidebar">
		<div class="block block-account">
			<div class="block-title">
				<strong>
					<span><?=lang('my_account')?></span>
				</strong>
			</div>
			<div class="block-content">
				<ul>
					<li >
						<a href="<?=site_url('user/dashboard')?>">
						<?=lang('my_dashbord')?>
						</a>	
					</li>
					<li>
						<a href="<?=site_url('user/my_account/')?>">
							<?=lang('account_info')?>
						</a>
					</li>
					<li>
						<a href="<?=site_url('user/my_address/')?>">
							<?=lang('my_address')?>
						</a>				
					</li>
					<li >
						<a href="<?=site_url('user/address_book')?>">
						<?=lang('address_book')?>
						</a>	
					</li>
					<li>
						<a href="<?=site_url('user/my_orders/')?>">
							<?=lang('my_orders')?>
						</a>
					</li>
					<li  class="current">
						<strong>
						<?=lang('newsletter')?>
						</strong>		
					</li>
					<li class="last">
						<a href="<?=site_url('user/logout/')?>">
							<?=lang('logout')?>
						</a>
					</li>
				</ul>
			</div>
		</div>
	</div>
	<div class="col-main">
		<?php print form_open('user/newsLetter/1',array('id'=>'myaddressFrm'));?>
			<h1>
				<?=lang('newsletter_subscription')?>
			</h1>
			<ul class="form-list">
				<li>
					<div class="fields">
						<input class="left" value="1" type="checkbox" <?=($user->newsletter)?' checked="true"':''?>" id="newsletter" name="newsletter" class="input-field" value="<?=$user->first_name?>" style="width:22px" />
						<label class="left" for="newsletter"><?=lang('general_subscription')?></label>
						
					</div>
				</li>
			</ul>
			<div class="clear"></div>
			<div class="button left" id="btn-save-address">
				<?=lang('save')?>
			 </div>						
		<?php print form_close()?>
	</div>	
	<div class="clear"></div>
</div>
<script>
$('#btn-save-address').click(function(){
		$('#myaddressFrm').submit();

});
</script>